﻿using Ace.AutoMapper;
using Ace.Entity.Wiki;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Text;

namespace Ace.Application.Wiki
{
    public class RefundInputBase: ValidationModel
    {

        public int Sort { get; set; }

        public string OrderID { get; set; }

        public string OrderItemID { get; set; }

        public string UserID { get; set; }

        public decimal RefundPrice { get; set; }

        public string RefundDesc { get; set; }

        public int SortID { get; set; }

        public string out_refund_no { get; set; }

        public string out_refund_status { get; set; }
        public string RefundFile { get; set; }

        public DateTime RefundDate { get; set; }

        public int ST { get; set; }

        public DateTime CreateDate { get; set; }
    }


    [MapToType(typeof(Refund))]
    public class AddRefundInput : RefundInputBase
    { 
    }

    [MapToType(typeof(Refund))]
    public class UpdateRefundInput : RefundInputBase
    {
        [RequiredAttribute(ErrorMessage = "{0}不能为空")]
        public string Id { get; set; }
    }
}
